package com.ruoyi.student.domain.vo;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.student.domain.TTaskInfo;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.List;

/**
 * 单元对象 t_unit_info
 * 
 * @author ruoyi
 * @date 2023-08-15
 */
public class TUnitInfoVo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 单元名称 */
    @Excel(name = "单元名称")
    private String name;

    /** 单元排序 */
    @Excel(name = "单元排序")
    private Long sort;

    /** 所属课程id */
    @Excel(name = "所属课程id")
    private String courseId;

    /** 所属课程名称 */
    @Excel(name = "所属课程名称")
    private String courseName;

    /** 创建人id */
    @Excel(name = "创建人id")
    private Long creatorId;

    /** 课程状态：0无效 1有效 */
    @Excel(name = "课程状态：0无效 1有效")
    private Integer validFlag;

    /** 创建人 */
    @Excel(name = "创建人")
    private String creatorName;

    /** 所有的任务列表 */
    @Excel(name = "所有的任务列表")
    private List<TTaskInfoVo> tTaskInfoVos;

    public void setTTaskInfoVos(List<TTaskInfoVo> tTaskInfoVos)
    {
        this.tTaskInfoVos = tTaskInfoVos;
    }

    public List<TTaskInfoVo> getTTaskInfoVos()
    {
        return tTaskInfoVos;
    }


    public void setCreatorName(String creatorName)
    {
        this.creatorName = creatorName;
    }

    public String getCreatorName()
    {
        return creatorName;
    }

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setSort(Long sort) 
    {
        this.sort = sort;
    }

    public Long getSort() 
    {
        return sort;
    }
    public void setCourseId(String courseId) 
    {
        this.courseId = courseId;
    }

    public String getCourseId() 
    {
        return courseId;
    }
    public void setCourseName(String courseName) 
    {
        this.courseName = courseName;
    }

    public String getCourseName() 
    {
        return courseName;
    }
    public void setCreatorId(Long creatorId) 
    {
        this.creatorId = creatorId;
    }

    public Long getCreatorId() 
    {
        return creatorId;
    }
    public void setValidFlag(Integer validFlag) 
    {
        this.validFlag = validFlag;
    }

    public Integer getValidFlag() 
    {
        return validFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("sort", getSort())
            .append("courseId", getCourseId())
            .append("courseName", getCourseName())
            .append("creatorId", getCreatorId())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("createBy", getCreateBy())
            .append("updateBy", getUpdateBy())
            .append("validFlag", getValidFlag())
            .append("remark", getRemark())
                .append("tTaskInfoVos", getTTaskInfoVos())
            .toString();
    }
}
